Retrieve a decision report from Determinations Server
Retrieve a decision report from the Determinations Engine
Retrieve a decision report in an interview
A decision report is a recursive structure that contains a series of nodes, and explains the series of steps that led to an attribute having a particular value.
For information on retrieving a decision report from the Determinations Engine, refer to Get a decision from Determinations Engine in the Embed determinations inside another application topic.
If the Interview Goal is an AttributeGoal, then the underlying Attribute object encapsulated may be used to retrieve a decision report. This is done by making the following API call:
attributeGoal.getAttribute().getDecisionReport(attributeGoal.getContext().findEntityInstance(interviewSession));
In the above code snippet the following is done:
In the example above we have used the simplest of the overloaded getDecisionReport methods. The getContext method call on the attribute goal retrieves the InterviewEntityInstanceContext object attached to this attribute goal - a unique identifier for the InterviewEntityInstance attached to the interview goal. From there, the utility method findEntityInstance can be used (with the variable interviewSession which is set to the interview session of which the attribute goal object is a goal to be investigated) to retrieve the underlying determinations engine EntityInstance to which the context refers.